<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>

    <style>
        /* 1.CSS样式继承性 */
        body {
            font-size: 24px;
            color: red;
        }

        /* 2.CSS样式层叠性 */
        /* 3.CSS样式优先级，选择标签范围越大，优先级越低 */
        div {
            color: blue;
            font-size: 30px;
        }

        div {
            font-size: 28px;
        }
    </style>
</head>
<body>
    <div>div标签</div>
    <p>p标签</p>
    <span>span标签</span>
    <h1>h1标签</h1>
</body>
</html>